package com.ag.zrt.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;


import com.ag.bean.TbEventLevel;
import com.ag.common.BaseAction;
import com.ag.zrt.service.EventLevelService;
@Controller("findEventLevelAction")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class FindEventLevelAction extends BaseAction {//
	private static final long serialVersionUID = -1478025497648926124L;
	@Resource(name="EventLevelService")
	private EventLevelService eventLevelService;//
	private List<TbEventLevel> eventLevelList;
	
	public void setEventLevelService(EventLevelService eventLevelService) {
		this.eventLevelService = eventLevelService;
	}

	@Override
	public String execute() throws Exception {
		eventLevelList=eventLevelService.findAll();
		return "find_el_succ";
	}

	public List<TbEventLevel> getEventLevelList() {
		return eventLevelList;
	}


}
